
package com.pharmacy.InventoryManage.dao;

import com.pharmacy.InventoryManage.entity.Inventory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InventoryMapper {
    List<Inventory> findAllInventories();
    Inventory findInventoryById(Integer id);
    Inventory findInventoryByMedicineId(Integer medicineId);
    List<Inventory> findLowStockInventories();
    int insertInventory(Inventory inventory);
    int updateInventory(Inventory inventory);
    int updateInventoryQuantity(@Param("medicineId") Integer medicineId, @Param("quantity") Integer quantity);
    int deleteInventory(Integer id);
}